/* -----------------------------------------------------------------------
*
* Random test of Smithy card.
* -----------------------------------------------------------------------
*/

#include <assert.h>
#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>



void testCard(struct gameState* gState);

int main()
{
	struct gamestate* gState = malloc(sizeof(struct gameState));
	testCard(gState);
	free(gState);

	return 0;
}

void testCard(gamestate* gState)
{
	srand(time(NULL));

	int numPlayer = 2;
	int prevCount = 0;

	int k[10] = { adventurer, council_room, feast, gardens, mine, remodel, smithy, village, baron, great_hall };
	

	gState.whoseTurn = 0;
	gState.hand[0][0] = smithy;
	gstate.handCount[0] = rand()%49 + 1;
	prevCount = gstate.handCount[0];


	smithy_effect(0, &gState, 0);

	if (state.handCount[0] == prev_Count + 2)
	{
		printf("Smithy test succeeded!\n");
	}
	else
	{
		printf("Smithy test failed.\n")
	}


	return;
}
